export default [
  {path: '/', name: '主页', icon: 'smile', component: './Index'},
  {path: '/one/interface_info/:id', name: '查看接口', icon: 'smile', component: './InterfaceInfo', hideInMenu: true},

  {
    path: '/user',
    layout: false,
    routes: [{name: '登录', path: '/user/login', component: './User/Login'}],
  },

  {path: '/user_center', name: '个人中心', icon: 'smile', component: './UserCenter', hideInMenu: true},

  {
    path: '/upload',
    name: '接口管理',
    icon: 'RocketOutlined',
    routes: [
      {name: '上传接口', icon: 'table', path: '/upload/interface_info', component: './UploadInterface/InterfaceInfo'},
      {
        name: '接口分析',
        icon: 'analysis',
        path: '/upload/interface_analysis/upload',
        component: './UploadInterface/InterfaceInfoAnalysis'
      },
      {
        name: '接口使用分析',
        icon: 'analysis',
        path: '/upload/interface_analysis/use',
        component: './UploadInterface/InterfaceInfoAnalysis'
      },
    ],
  },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      {
        name: '用户管理',
        icon: 'user',
        path: '/admin/user',
        component: './Admin/UserAdmin'
      },
      {name: '接口管理', icon: 'table', path: '/admin/interface_info', component: './Admin/InterfaceInfo'},
      {
        name: '接口总分析',
        icon: 'analysis',
        path: '/admin/interface_analysis/all',
        component: './UploadInterface/InterfaceInfoAnalysis'
      },
    ],
  },
  // { path: '*', layout: false, component: './404' },
];
